package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.core.domain.TreeEntityType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 档案分类对象 jl_archives_type
 * 
 * @author ruoyi
 * @date 2023-07-20
 */
public class JlArchivesType extends TreeEntityType
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 类型编码 */
    @Excel(name = "类型编码")
    private String typeNo;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String typeName;

    /** 负责人 */
    @Excel(name = "负责人")
    private String leader;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 部门状态（0正常 1停用） */
    @Excel(name = "部门状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 部门类别 */
    @Excel(name = "部门类别")
    private String archiveType;

    /** 子级 */
    private List<JlArchivesType> children = new ArrayList<JlArchivesType>();

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTypeNo(String typeNo)
    {
        this.typeNo = typeNo;
    }

    public String getTypeNo() 
    {
        return typeNo;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }
    public void setLeader(String leader) 
    {
        this.leader = leader;
    }

    public String getLeader() 
    {
        return leader;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setArchiveType(String archiveType) 
    {
        this.archiveType = archiveType;
    }

    public String getArchiveType() 
    {
        return archiveType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("typeNo", getTypeNo())
            .append("typeName", getTypeName())
            .append("orderNum", getOrderNum())
            .append("leader", getLeader())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("archiveType", getArchiveType())
            .toString();
    }
}
